home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / Mesa-3.0 / SRC / TEXSTATE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-21  |  3.4 KB  |  115 lines

  1. /* $Id: texstate.h,v 3.3 1998/08/21 01:50:01 brianp Exp $ */
  2.  
  3. /*
  4.  * Mesa 3-D graphics library
  5.  * Version:  3.0
  6.  * Copyright (C) 1995-1998  Brian Paul
  7.  *
  8.  * This library is free software; you can redistribute it and/or
  9.  * modify it under the terms of the GNU Library General Public
  10.  * License as published by the Free Software Foundation; either
  11.  * version 2 of the License, or (at your option) any later version.
  12.  *
  13.  * This library is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  * Library General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Library General Public
  19.  * License along with this library; if not, write to the Free
  20.  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23.  
  24. /*
  25.  * $Log: texstate.h,v $
  26.  * Revision 3.3  1998/08/21 01:50:01  brianp
  27.  * added gl_max_texture_coord_sets()
  28.  *
  29.  * Revision 3.2  1998/06/07 22:18:52  brianp
  30.  * implemented GL_EXT_multitexture extension
  31.  *
  32.  * Revision 3.1  1998/02/20 04:53:37  brianp
  33.  * implemented GL_SGIS_multitexture
  34.  *
  35.  * Revision 3.0  1998/01/31 21:04:38  brianp
  36.  * initial rev
  37.  *
  38.  */
  39.  
  40.  
  41. #ifndef TEXSTATE_H
  42. #define TEXSTATE_H
  43.  
  44.  
  45. #include "types.h"
  46.  
  47.  
  48. /*** Called from API ***/
  49.  
  50. extern void gl_GetTexEnvfv( GLcontext *ctx,
  51.                             GLenum target, GLenum pname, GLfloat *params );
  52.  
  53. extern void gl_GetTexEnviv( GLcontext *ctx,
  54.                             GLenum target, GLenum pname, GLint *params );
  55.  
  56. extern void gl_GetTexGendv( GLcontext *ctx,
  57.                             GLenum coord, GLenum pname, GLdouble *params );
  58.  
  59. extern void gl_GetTexGenfv( GLcontext *ctx,
  60.                             GLenum coord, GLenum pname, GLfloat *params );
  61.  
  62. extern void gl_GetTexGeniv( GLcontext *ctx,
  63.                             GLenum coord, GLenum pname, GLint *params );
  64.  
  65. extern void gl_GetTexLevelParameterfv( GLcontext *ctx,
  66.                                        GLenum target, GLint level,
  67.                                        GLenum pname, GLfloat *params );
  68.  
  69. extern void gl_GetTexLevelParameteriv( GLcontext *ctx,
  70.                                        GLenum target, GLint level,
  71.                                        GLenum pname, GLint *params );
  72.  
  73. extern void gl_GetTexParameterfv( GLcontext *ctx, GLenum target,
  74.                                   GLenum pname, GLfloat *params );
  75.  
  76. extern void gl_GetTexParameteriv( GLcontext *ctx,
  77.                                   GLenum target, GLenum pname, GLint *params );
  78.  
  79.  
  80. extern void gl_TexEnvfv( GLcontext *ctx,
  81.                          GLenum target, GLenum pname, const GLfloat *param );
  82.  
  83.  
  84. extern void gl_TexParameterfv( GLcontext *ctx, GLenum target, GLenum pname,
  85.                                const GLfloat *params );
  86.  
  87.  
  88. extern void gl_TexGenfv( GLcontext *ctx,
  89.                          GLenum coord, GLenum pname, const GLfloat *params );
  90.  
  91.  
  92. /*
  93.  * GL_SGIS_multitexture / GL_EXT_multitexture
  94.  */
  95.  
  96. extern void gl_SelectTextureSGIS( GLcontext *ctx, GLenum target );
  97.  
  98. extern void gl_SelectTexture( GLcontext *ctx, GLenum target );
  99.  
  100. extern void gl_SelectTextureCoordSet( GLcontext *ctx, GLenum target );
  101.  
  102. extern void gl_SelectTextureTransform( GLcontext *ctx, GLenum target );
  103.  
  104.  
  105.  
  106. /*** Internal functions ***/
  107.  
  108. extern void gl_update_texture_state( GLcontext *ctx );
  109.  
  110. extern GLint gl_max_texture_coord_sets( const GLcontext *ctx );
  111.  
  112.  
  113. #endif
  114.  
  115.